package org.blueoxygen.kukuruyuk.action.masterreceipedetail;

import org.blueoxygen.kukuruyuk.action.masterreceipedetail.MasterReceipeDetailForm;
import org.blueoxygen.kukuruyuk.entity.MasterReceipeDetail;
public class DeleteMasterReceipeDetail extends MasterReceipeDetailForm{
	public String execute(){
        if(getMasterreceipedetail().getId() != null &&
                !"".equalsIgnoreCase(getMasterreceipedetail().getId())){
            setMasterreceipedetail((MasterReceipeDetail) manager.getById(MasterReceipeDetail.class, getMasterreceipedetail().getId()));
            manager.remove(getMasterreceipedetail());
        }
        return SUCCESS;
    }

}